function mylnstanceOf(obj,fn){
  let proto = obj.__proto__
  let typeproto = fn.prototype
  while(proto){
    if(proto === typeproto){
      return true
    }
    //沿着原生链往上找
    proto = proto.__proto__

  }
  return false
}